module.exports = () => {
  console.log('local...');
  const config = {};

  config.sequelize = {
    datasources: [
      {
        delegate: 'model',
        baseDir: 'model',
        dialect: 'mysql',
        host: '192.168.2.72',
        username: 'xyops_dev',
        password: 'xyops_dev',
        database: 'xyops_dev',
        logging: console.log,
        timezone: '+08:00',
        dialectOptions: {
          charset: 'utf8',
          dateStrings: true,
          typeCast(field, next) {
            if (field.type === 'DATETIME') {
              //   // 返回正确得时间
              return field.string();
            }
            return next();
          },
        },
        define: {
          underscored: true,
          // underscoredAll: true,
          freezeTableName: true,
        },
      },
    ],
  };
  // config.webDataId = 'all-round-devtest.weillan.xyb2b.com-index.html';
  return config;
};
